<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="btn">

<my-button >我的按钮</my-button>
</div>
</body>
<script src="../vue/vue.js"></script>
<script>
 /*   new Vue({
        el:"#div",
        data:{
            name:"daqiang"
        }
    });*/

    Vue.component("my-button",{
        prop:["style"],
        data:function () {
            return {
                msg:"我的按钮"

            }
        },
        template:"<button style='color: red'>{{msg}}</button>"
    });
 new Vue({
     el:"#btn"
 });
</script>
</html>